<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/7/29
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="../static/lib/layui-v2.6.8/layui/css/layui.css">
    <title>Title</title>
<%--    <script src="static/lib/layui/layui.js"></script>--%>
<%--    <script src="static/js/DepartmentList.js"></script>--%>
</head>
<body>
<%--start行内部工具栏--%>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<%--end行内部工具栏--%>

<%-- start 部门数据列表展示   --%>

<table class="layui-table" lay-data="{ url:'../department/list', page:true, id:'datalist',toolbar:'#toptoolbar'}" lay-filter="datalist">
    <thead>
    <tr>
        <th lay-data="{field:'id', width:80, sort: true}">部门ID</th>
        <th lay-data="{field:'name', }">部门名</th>
        <th lay-data="{field:'code', sort: true}">部门编码</th>
        <th lay-data="{field:'count'}">部门人数</th>
        <th lay-data="{field:'createtime', sort: true,}">创建时间</th>
        <th lay-data="{field:'操作',toolbar:'#barDemo'}">操作</th>
    </tr>
    </thead>
</table>
<%--end用户数据列表展示--%>
<%--start表头工具栏--%>
<script type="text/html" id="toptoolbar">
    <div class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="checktext" class="layui-input">
            </div>
            <button class="layui-btn layui-btn" lay-event="check">查询</button>
            <button type="button" class="layui-btn" lay-event="add">增加</button>
        </div>
    </div>
</script>
<%--end表头工具栏--%>


<%--start新增用户弹窗--%>
<div id="windo" style="display: none; padding: 20px" lay-filter="addDepartmentForm" class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">部门名</label>
        <div class="layui-input-inline">
            <input type="text" name="name"  required lay-verify="required" placeholder="请输入部门名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">部门人数</label>
        <div class="layui-input-inline">
            <input name="count" lay-verify="" style=""  required lay-verify="required" placeholder="请输入部门人数" autocomplete="off" class="layui-input"></input>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">部门编码</label>
        <div class="layui-input-inline">
            <input name="code" lay-verify="" style=""  required lay-verify="required" placeholder="请输入部门编码" autocomplete="off" class="layui-input"></input>
        </div>
    </div>
</div>

<%--end新增用户弹窗--%>


<%--start编辑用户弹出窗口--%>




<div id="windoedit" style="display: none; padding: 20px" lay-filter="editDepartmentForm" class="layui-form">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">部门名</label>
        <div class="layui-input-inline">
            <input type="text" name="name" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
    </div>
</div>

<%--end编辑用户弹出窗口--%>

<%--<script src="static/lib/layui/layui.js" charset="utf-8"></script>--%>
<script src="../static/lib/layui-v2.6.8/layui/layui.js"></script>
<script src="../static/js/DepartmentList.js"></script>

</body>
</html>
